package com.my.study.bean;

/**
 * @author: yidujun
 * @create: 2021/06/18 14:12
 */
public class UserService {
    private String name;

    private UserDao userDao;

    public UserService() {
    }

    public UserService(String name) {
        this.name = name;
    }

    public void queryUserInfo() {
        System.out.println("查询用户信息：" + userDao.queryUserName(name));
    }

    public UserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

//    @Override
//    public String toString() {
//        final StringBuilder sb = new StringBuilder("");
//        sb.append("").append(name);
//        return sb.toString();
//    }
}
